<?php
if ( !defined( "IN_UCHOME" ) )
{
	exit( "Access Denied" );
}
checklogin( );
//获得用户的UID
if ( empty( $uid ) )
{
	$uid = $_SGLOBAL['supe_uid'];
}
if(!isset($_GET['newsid'])){
	showmessage('非法访问!', 'news.php',5);
}

$newsid=$_GET['newsid'];
$content=$_POST['content'];
if(!empty($newsid)){
	$data=array(
		'reviewid'=>$newsid,
		'content'=>$content,
		'uid'=>$uid,
		'posttime'=>time(),
		'status'=>$confignewss['responeds']
	);
	inserttable( "news_responds", $data, 1 );
	if($confignewss['responeds']==0) showmessage('回复成功！', 'news.php?ac=view&newsid='.$newsid,0);
	if($confignewss['responeds']==1) showmessage('回复成功,请等待管理员审核！', 'news.php?ac=view&newsid='.$newsid,5);
	
}

?>